import request from './request'

// 一级分类
export const reqGetCategoryList = () => request({ url: '/home/category/head', method: 'get' })

// 获取单个顶级分类信息
export const reqTopCategory = (id) => request({ url: '/category', method: 'get', params: { id } })

// 获取二级分类筛选数据
export const reqSubCategoryFilter = (id) => request({ url: '/category/sub/filter', method: 'get', params: { id } })

// 二级分类商品
export const reqFindSubCategoryGoods = (data) => request({ url: '/category/goods/temporary', method: 'post', data })
